﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using Lamex.Library;
using Lamex.Library.CommonClass;
using Lamex.Interface;
using Lamex.mDashboard;
using Lamex.mDashboard.UI;
using Lamex.mMES.UI;
using Lamex.mSchedule.UI;
using Lamex.Common;

namespace Lamex.mKanban.UI
{
    public partial class frmKan_Main : frmModuleBase
    {
        public frmKan_Main()
        {
            InitializeComponent();
            menuStrip1.Text = ModuleNames.mKanban; //与AssemblyModuleEntry.ModuleName定义相同
        }

        public override MenuStrip GetModuleMenu()
        {
            return this.menuStrip1;
        }

        #region 桌子看板

        private void menuKB_Laminate_AutoLine_Click(object sender, EventArgs e)
        {

        }

        private void menuKB_Laminate_ManualLine_Click(object sender, EventArgs e)
        {

        }

        private void menuKB_Laminate_AssemblyLine_Click(object sender, EventArgs e)
        {

        }

        private void menuKB_Laminate_CleaningLine_Click(object sender, EventArgs e)
        {

        }

        private void menuKB_Laminate_PackingLine_Click(object sender, EventArgs e)
        {

        }
        private void menuKB_Laminate_Accessory_Packing_Click(object sender, EventArgs e)
        {
            MdiTools.OpenChildForm(this.MdiParent as IMdiForm, typeof(frmKan_Accessory), sender as ToolStripMenuItem);
            //MdiTools.OpenChildWebBrowse(this.MdiParent as IMdiForm, new frmBaseChildWinForm("KB_Accessory_Photo_List", 0, true, true), sender as ToolStripMenuItem);
        }

        private void menuKB_Laminate_TVX_Click(object sender, EventArgs e)
        {
            MdiTools.OpenIE(@"\\tx-fs10\TX-FS1\LAMEX\AppService\App\Lamex\Lamex-3TV\Debug\Lamex.exe");
        }
        private void menuKB_Laminate_D343742_Click(object sender, EventArgs e)
        {
            MdiTools.OpenChildForm(this.MdiParent as IMdiForm, typeof(FrmDataCollection), sender as ToolStripMenuItem);
        }

        #endregion

        #region 屏风看板

        private void menuKB_Panel_BoardProcessing_Click(object sender, EventArgs e)
        {

        }

        private void menuKB_Panel_AluminiumProcessing_Click(object sender, EventArgs e)
        {

        }

        private void menuKB_Panel_AluminiumAssembly_Click(object sender, EventArgs e)
        {

        }

        private void menuKB_Panel_FabricProcessing_Click(object sender, EventArgs e)
        {

        }

        private void menuKB_Panel_UnframeProcessing_Click(object sender, EventArgs e)
        {

        }

        private void menuKB_Panel_FinishedAssembly_Click(object sender, EventArgs e)
        {

        }

        private void menuKB_Panel_Powder_Coating_Click(object sender, EventArgs e)
        {

        }

        private void menuKB_Panel_P75_Click(object sender, EventArgs e)
        {
            MdiTools.OpenChildForm(this.MdiParent as IMdiForm, typeof(FrmPANELAssemblyQuery), sender as ToolStripMenuItem);
        }

        private void menuKB_Panel_P05_Click(object sender, EventArgs e)
        {
            //Loginer.CurrentUser.FunctionId = "menuSCH_ScanFollowUp";
            MdiTools.OpenChildWebBrowse(this.MdiParent as IMdiForm, new frmMES_Kanban_Show("P05", false), sender as ToolStripMenuItem);
            //MdiTools.OpenChildForm(this.MdiParent as IMdiForm, typeof(frmMES_Kanban_Show), sender as ToolStripMenuItem);
        }

        #endregion

        #region 椅子看板

        private void menuKB_Seating_PreparingWorkshop_Click(object sender, EventArgs e)
        {

        }

        private void menuKB_Seating_AccessoryWorkshop_Click(object sender, EventArgs e)
        {

        }

        private void menuKB_Seating_TaskChair_Click(object sender, EventArgs e)
        {

        }

        private void menuKB_Seating_ExecutiveChair_Click(object sender, EventArgs e)
        {

        }

        private void menuKB_Seating_S06_Click(object sender, EventArgs e)
        {
            Loginer.CurrentUser.FunctionId = "menuSCH_ScanFollowUp";
            MdiTools.OpenChildWebBrowse(this.MdiParent as IMdiForm, new frmMES_Kanban_Show("S06", true), sender as ToolStripMenuItem);
        }

        private void menuKB_Seating_S08_Click(object sender, EventArgs e)
        {
            Loginer.CurrentUser.FunctionId = "menuSCH_ScanFollowUp";
            MdiTools.OpenChildWebBrowse(this.MdiParent as IMdiForm, new frmMES_Kanban_Show("S08", true), sender as ToolStripMenuItem);

            //旧界面，已不使用
            //MdiTools.OpenChildForm(this.MdiParent as IMdiForm, typeof(frmIE_Seat_ProcessAboard), sender as ToolStripMenuItem);
        }

        private void menuKB_Seating_S19_Click(object sender, EventArgs e)
        {
            Loginer.CurrentUser.FunctionId = "menuSCH_ScanFollowUp";
            MdiTools.OpenChildWebBrowse(this.MdiParent as IMdiForm, new frmMES_Kanban_Show("S19", true), sender as ToolStripMenuItem);
        }

        #endregion

        #region MCG看板

        private void menuKB_MCG_MaterialProcessing_Click(object sender, EventArgs e)
        {

        }
        private void menuKB_MCG_PunchingProcessing_Click(object sender, EventArgs e)
        {

        }

        private void menuKB_MCG_BendingProcessing_Click(object sender, EventArgs e)
        {

        }

        private void menuKB_MCG_WeldingProcessing_Click(object sender, EventArgs e)
        {

        }

        private void menuKB_MCG_AssemblyProcessing_Click(object sender, EventArgs e)
        {

        }

        private void menuKB_MCG_SlottingProcessing_Click(object sender, EventArgs e)
        {

        }

        private void menuKB_MCG_MetalProcessing_Click(object sender, EventArgs e)
        {

        }

        #endregion
    }
}